<%-include('../../public/header.html')%>
 <div><a href="/admin/articleCate/add">增加分类</a></div>
 <table>
     <thead>
        <tr>
            <th>分类名称</th>
            <th>链接地址</th>
            <th>排序</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
     </thead>
     <tbody>
        <%for(var i = 0;i<list.length;i++){%>
            <tr>
                <td><%=list[i].title%></td>
                <td><%=list[i].link%></td>
                <td><%=list[i].sort%></td>
                <td align="center">
                    <%if(list[i].status==1){%>
                        <img src="/admin/image/yes.gif" class="chstatus">
    
                        <%}else{%>
                        <img src="/admin/image/no.gif" class="chstatus"/>
                        <%}%>
                </td>
                <td>
                    <a href="/admin/articleCate/edit?id=<%=list[i]._id%>"  alt="">修改</a>
                    <a href="/admin/articleCate/delete?id=<%=list[i]._id%>" class="delete" alt="">删除</a>
                </td>
            </tr>
            <%for(var j = 0;j<list[i].items.length;j++){%>
                <tr>
                    <!-- <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=list[i].items[j].title%></td> -->
                    <td>　　<%=list[i].items[j].title%></td>
                    <td><%=list[i].items[j].link%></td>
                    <td><%=list[i].items[j].sort%></td>
                    <td align="center">
                        <%if(list[i].items[j].status==1){%>
                            <img src="/admin/image/yes.gif" class="chstatus">
        
                            <%}else{%>
                            <img src="/admin/image/no.gif" class="chstatus"/>
                            <%}%>
                    </td>
                    <td>
                        <a href="/admin/articleCate/edit?id=<%=list[i].items[j]._id%>"  alt="">修改</a>
                        <a href="/admin/articleCate/delete?id=<%=list[i].items[j]._id%>" class="delete" alt="">删除</a>
                    </td>
                </tr>
            <%}%>
        <%}%>
     </tbody>
 </table>
</body>
</html>